<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ page contentType="text/html" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/jsp/header.jsp" %>

    <h1>Catalog List</h1>
    <div>
        <table border="0" width="100%">
            <tbody>
                <tr>
                    <td align="left" width="30%">
                        <div id="catalog_filter">
                        <table border="0">
                            <tbody>
                                <tr>
                                    <td>Select period:</td>
                                </tr>
                                <tr>
                                    <td>
                                        <select id="start_place_search_form">
                                            <option value=""></option>
                                            <c:forEach var="item" items="${list}">
                                                <option value="${item.id}">${item.placeName}</option>
                                            </c:forEach>
                                        </select>
                                    </td>
                                </tr>
                                <tr>
                                    <td>Select place:</td>
                                </tr>
                                <tr>
                                    <td>
                                        <input type="text" id="search_from_date_picker" />
                                        <input type="text" id="search_to_date_picker" />
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <input type="submit" id="send_search_action" value="Search" />
                                        <input type="submit" id="clean_search_action" value="Clean" />
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    </td>
                    
                    <td align="left" width="70%">
                        <div  id="search_list">
                        </div>
                    </td>
                    
               </tr>
            </tbody>
        </table>
    </div>

		
<script type="text/javascript">
		
    $(document).ready(function(){
        var searchController = new SearchController(
            new SearchView()
        );
        searchController.init();
    });
</script>
    
<%@ include file="/WEB-INF/jsp/footer.jsp" %>